package smartnews.views;

import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.SQLException;
import java.util.logging.Level;
import java.util.logging.Logger;


public class MailCode {
	private Connection con = null;
	
	public MailCode(){
		try {
            Class.forName("com.mysql.jdbc.Driver");
        } catch (ClassNotFoundException ex) {
            System.out.println("Thieu driver");
        }

        String userName = "root";
        String userPassword = "";
        String url = "jdbc:mysql://localhost:3306/smartnews";


        
        try {
            con = DriverManager.getConnection(url, userName, userPassword);
        } catch (SQLException ex) {
            Logger.getLogger(MailCode.class.getName()).log(Level.SEVERE, null, ex);
        }

		
	}

}
